]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Removing all favorites makes it impossible to add new ones
authorMaxim Ermilov <zaspire@rambler.ru>
Tue, 27 Oct 2009 11:54:23 +0000 (14:54 +0300)
committerOwen W. Taylor <otaylor@fishsoup.net>
Tue, 27 Oct 2009 15:32:30 +0000 (11:32 -0400)
Show the placeholder when all favorites are gone.
https://bugzilla.gnome.org/show_bug.cgi?id=591854

js/ui/appDisplay.js

index 1ded1bc61f4d95591656d112e67d561632cc6f5f..db2b507e367d92b551ec3bcda4d984c86b666c1e 100644 (file)
@@ -860,6 +860,13 @@ AppWell.prototype = {
             let display = new RunningWellItem(app, false);
             this._grid.actor.add_actor(display.actor);
         }
+
+        if (this._grid.actor.get_n_children() == 1) {
+            let text = new Clutter.Text({ color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR,
+                                          font_name: "Sans 14px",
+                                          text: _("Drag here to add favorites")});
+            this._grid.actor.add_actor(text);
+        }
     },
 
     // Draggable target interface